#include <cstdlib>
#include <iostream>
#include <PaceController.h>
#include <pthread.h>

int main(int argc, char *argv[]) {

	int sensorthread_retval, actuatorthread_retval, pacecontrollerthread_retval;
	pthread_t sensingthread, pacingthread, controllerthread;

	std::cout << "Welcome to the QNX Momentics IDE" << std::endl;

	//sensorthread_retval = pthread_create(&sensingthread,NULL,Pacing, NULL);
	//actuatorthread_retval = pthread_create(&pacingthread,NULL,Sensing, NULL);
	// TODO - Add threads for programmer, error manager,
	// TODO pthread_ atrributes for priority etc;
	pacecontrollerthread_retval = pthread_create(&controllerthread, NULL, PaceController::Cyclic, NULL);

	// TODO pthread_join();
	return EXIT_SUCCESS;
}


/*
TODO - Driver: Each Read / Write / Init needs to call the Kernel driver
TODO - Complete the Sensing / Pacing etc.


*/

